Tel No. (+91) 7015535114

For Stacks & Queues

Level 1


Question 1

Implement Stack from Scratch

Try YourSelf

View Solution

Video Solution

Question 2

Implement Queue from Scratch

Try YourSelf

View Solution

Video Solution

Question 3

Implement 2 stack in an array

Try YourSelf

View Solution

Video Solution

Question 4

find the middle element of a stack

Try YourSelf

View Solution

Video Solution

Level 2


Question 1

find the middle element of a stack

Try YourSelf

View Solution

Video Solution

Question 2

Implement "N" stacks in an Array

Try YourSelf

View Solution

Video Solution

Question 3

Check the expression has valid or Balanced parenthesis or not.

Try YourSelf

View Solution

Video Solution

Question 4

Reverse a String using Stack

Try YourSelf

View Solution

Video Solution

Level 3


Question 1

Design a Stack that supports getMin() in O(1) time and O(1) extra space.

Try YourSelf

View Solution

Video Solution

Question 2

Find the next Greater element

Try YourSelf

View Solution

Video Solution

Question 3

The celebrity Problem

Try YourSelf

View Solution

Video Solution

Question 4

Arithmetic Expression evaluation

Try YourSelf

View Solution

Video Solution

Level 4


Question 1

Evaluation of Postfix expression

Try YourSelf

View Solution

Video Solution

Question 2

Implement a method to insert an element at its bottom without using any other data structure.

Try YourSelf

View Solution

Video Solution

Question 3

Reverse a stack using recursion

Try YourSelf

View Solution

Video Solution

Question 4

Sort a Stack using recursion

Try YourSelf

View Solution

Video Solution

Level 5


Question 1

Merge Overlapping Intervals

Try YourSelf

View Solution

Video Solution

Question 2

Largest rectangular Area in Histogram

Try YourSelf

View Solution

Video Solution

Question 3

Length of the Longest Valid Substring

Try YourSelf

View Solution

Video Solution

Question 4

Expression contains redundant bracket or not

Try YourSelf

View Solution

Video Solution

Level 6


Question 1

Implement Stack using Queue

Try YourSelf

View Solution

Video Solution

Question 2

Implement Stack using Deque

Try YourSelf

View Solution

Video Solution

Question 3

Stack Permutations (Check if an array is stack permutation of other)

Try YourSelf

View Solution

Video Solution

Question 4

Implement Queue using Stack

Try YourSelf

View Solution

Video Solution

Level 7


Question 1

Implement "n" queue in an array

Try YourSelf

View Solution

Video Solution

Question 2

Implement a Circular queue

Try YourSelf

View Solution

Video Solution

Question 3

LRU Cache Implementationa

Try YourSelf

View Solution

Video Solution

Question 4

Reverse a Queue using recursion

Try YourSelf

View Solution

Video Solution

Level 8


Question 1

Reverse the first “K” elements of a queue

Try YourSelf

View Solution

Video Solution

Question 2

Interleave the first half of the queue with second half

Try YourSelf

View Solution

Video Solution

Question 3

Find the first circular tour that visits all Petrol Pumps

Try YourSelf

View Solution

Video Solution

Question 4

Minimum time required to rot all oranges

Try YourSelf

View Solution

Video Solution

Level 9


Question 1

Distance of nearest cell having 1 in a binary matrix

Try YourSelf

View Solution

Video Solution

Question 2

First negative integer in every window of size “k”

Try YourSelf

View Solution

Video Solution

Question 3

Check if all levels of two trees are anagrams or not.

Try YourSelf

View Solution

Video Solution

Question 4

Sum of minimum and maximum elements of all subarrays of size “k”.

Try YourSelf

View Solution

Video Solution

Level 10


Question 1

Minimum sum of squares of character counts in a given string after removing “k” characters.

Try YourSelf

View Solution

Video Solution

Question 2

Queue based approach or first non-repeating character in a stream.

Try YourSelf

View Solution

Video Solution

Question 3

Next Smaller Element

Try YourSelf

View Solution

Video Solution